package com.treasure.mall.biz.entity.embeddable;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * +---------------------------------------------------------
 * * @package: com.treasure.mall.biz.entity
 * * @author: guomw (guomwchen@foxmail.com)
 * * @date: 2020/6/11 09:28
 * * @since: V1.0.0
 * +---------------------------------------------------------
 * 注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的
 * Copyright 2019-2022 com.treasure.mall.biz.entity Inc. All rights reserved.
 */
@Embeddable
@Setter
@Getter
public class Address {
    @Column(name = "user_name",length = 50)
    private String userName; //	收货人姓名
    @Column(name = "postal_code",length = 10)
    private String postalCode;
    @Column(name = "province_name",length = 50)
    private String provinceName;//国标收货地址第一级地址
    @Column(name = "city_name",length = 50)
    private String cityName;//国标收货地址第二级地址
    @Column(name = "county_name",length = 50)
    private  String countyName;//国标收货地址第三级地址
    @Column(name = "detail_info",length = 100)
    private String detailInfo;//详细收货地址信息
    @Column(name = "national_code",length = 10)
    private String nationalCode;//收货地址国家码

    @Column(name = "tel_number",length = 20)
    private String telNumber;//收货人手机号码

    public String full(){
        return  provinceName + cityName + countyName + detailInfo;
    }
}
